package com.zhongyu.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyu.pojo.Org;
import com.zhongyu.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    @Select("select * from smbms_role ${ew.customSqlSegment}")
    List<Role> findAll(Page page , @Param("ew") Wrapper wrapper);

    @Select("select * from smbms_role where id=#{id}")
    List<Role> findById(Integer id);
}
